def SetProb():
    import GlobalParam as GP
    gp=GP.iparam
    for i in range(gp.get_nflow()):
        for j in range(gp.flow[i].get_nstage()):
            for k in range(gp.afs1(i,j).get_npath()):
                gp.set_prob(i,j,k)
